﻿using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Activation;
using Acaweb.Common;
using Acaweb.Model.Entities;
using Components = Acaweb.Componentes.Contracts;

namespace Acaweb.Servicios.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class PaisesService : Contracts.IPaisesService
    {
        Components.IPaisesService _PaisComponent = AppCtx.Resolve<Components.IPaisesService>();

        public List<Paises> GetAll()
        {
            return _PaisComponent.GetAll().ToList();
        }

        public Paises GetById(int Id)
        {
            return _PaisComponent.GetById(Id);
        }
    }
}
